package com.luban.myanno;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * 描述：
 *
 * @author lida
 * @time 2019/11/17 10:48
 */
@Component
@Aspect
public class AopUtil {

	@Pointcut("@annotation(com.luban.myanno.Entity)")
	public void pointcut() {

	}
	@Before("pointcut()")
	public void cut(){
		System.out.println("Before Method");
	}
}
